const mongoose = require('../../db');

const userSchemaPhone = new mongoose.Schema({
  phoneNumber: { type: String, required: true, unique: true },
  verificationCode: { type: String },
  codeExpires: { type: Date }
});

module.exports = mongoose.model('userPhone', userSchemaPhone);